package com.csjbot.snowbot_rogue.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/10/21 0021.
 */

public class PoseListBean {

    /**
     * index : 0
     * Location : {"x":1.44,"y":2.56,"z":0}
     * Rotation : {"yaw":2.3,"roll":0,"pitch":0}
     */

    private List<PosesBean> poses = new ArrayList<>();

    public List<PosesBean> getPoses() {
        return poses;
    }

//    public void setPose(int index, Pose pose) {
//        for (PosesBean posesBean : poses) {
//            if (posesBean.index == index) {
//
//            }
//        }
//    }

    public void setPoses(List<PosesBean> poses) {
        this.poses = poses;
    }


    public static class PosesBean {

        public PosesBean() {
        }

        public PosesBean(int index, float x, float y, float yaw) {
            this.index = index;
            Location = new LocationBean();
            Location.setX(x);
            Location.setY(y);

            Rotation = new RotationBean();
            Rotation.setYaw(yaw);
        }

        private int index;
        /**
         * x : 1.44
         * y : 2.56
         * z : 0
         */

        private LocationBean Location;
        /**
         * yaw : 2.3
         * roll : 0
         * pitch : 0
         */

        private RotationBean Rotation;

        public int getIndex() {
            return index;
        }

        public void setIndex(int index) {
            this.index = index;
        }

        public LocationBean getLocation() {
            return Location;
        }

        public void setLocation(LocationBean Location) {
            this.Location = Location;
        }

        public RotationBean getRotation() {
            return Rotation;
        }

        public void setRotation(RotationBean Rotation) {
            this.Rotation = Rotation;
        }

        public static class LocationBean {
            private float x;
            private float y;
            private float z;

            public float getX() {
                return x;
            }

            public void setX(float x) {
                this.x = x;
            }

            public float getY() {
                return y;
            }

            public void setY(float y) {
                this.y = y;
            }

            public float getZ() {
                return z;
            }

            public void setZ(float z) {
                this.z = z;
            }
        }

        public static class RotationBean {
            private float yaw;
            private float roll;
            private float pitch;

            public float getYaw() {
                return yaw;
            }

            public void setYaw(float yaw) {
                this.yaw = yaw;
            }

            public float getRoll() {
                return roll;
            }

            public void setRoll(float roll) {
                this.roll = roll;
            }

            public float getPitch() {
                return pitch;
            }

            public void setPitch(float pitch) {
                this.pitch = pitch;
            }
        }
    }
}
